package org.springcloud.wisdom.spring_01_canteen.dishes.cart;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

@Service
public interface  CartService extends IService<Cart> {
    // 添加商品到购物车
    void addToCart(Cart cart);

    // 更新购物车商品数量
    boolean updateCartQuantity(Integer id, Integer newCount);

    // 从购物车删除商品
    void removeFromCart(Integer id);
    //清空购物车
    public void clearCart();


}
